<script setup>
import { inject } from 'vue'
/**
 * 参数：名字
 */
const count = inject('count')
const change = inject('change')
</script>

<template>
  <div class="">
    GrandSon
    <p>
      count is {{ count }}
      <button @click="change(300)">change</button>
    </p>
  </div>
</template>

<style scoped></style>
